!/bin/bash

company="segi";

companyID="com.segi.uhome";

companyURL="http://www.segi.com";

target="iphoneos";

#target="macosx";

outputPath="./docs";

# End constants

appledoc \
--project-name "SEGTool" \
--project-company "${company}" \
--company-id "${companyID}" \
--docset-atom-filename "${company}.atom" \
--docset-feed-url "${companyURL}/${company}/%DOCSETATOMFILENAME" \
--docset-package-url "${companyURL}/${company}/%DOCSETPACKAGEFILENAME" \
--docset-fallback-url "${companyURL}/${company}" \
--output "${outputPath}" \
-i *.m \
--publish-docset \
--docset-platform-family "${target}" \
--logformat xcode \
--keep-intermediate-files \
--no-repeat-first-par \
--no-warn-invalid-crossref \
--exit-threshold 2 \
./SEGTool/Class